*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}
a{
    color: #666;
}
html,body,#root,.app{
    width: 100%;
    height: 100%;
}
.app{
    display: flex;
    flex-direction: column;
}
/* 底部导航 */
.tabbar{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-top: 1px solid #ccc;
    a.active{
        color: red;
    }
}
/* header样式 */
.header{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-top: 1px solid #ccc;
    box-shadow: 3px 3px 3px #ccc;
}

.content{
    height: 567px;
   flex: 1;
}

/* 我的页面 */
.my{
    .content{
        .user{
            display: flex;
            width: 100%;
            height: 77px;
            border-bottom: 1px solid #ccc;
            .img{
                padding: 10px;
                width: 20%;
                height: 100%;
                div{
                    width: 100%;
                    height: 100%;
                    background: skyblue;
                    border-radius: 50%;
                }
            }
            .text{ 
                 padding: 20px;
               width: 80%; 
                height: 100%;
                line-height: 22px;
            }
        }
        .yhq{
            width: 100%;
            height:80px;
            padding: 10px;
            
           .img{
               border-radius: 10px;
               width: 100%;
               height: 100%;
               background: antiquewhite;
           }
        }
        .list{
            width: 100%;
            height: 400px;
            overflow: auto;
            padding: 0 20px;
            .item{  
                display: flex;
                width: 100%;
                height: 50px;
                line-height: 50px;
                justify-content: space-between;
                border-bottom: 1px solid #ccc;
            }
        }
    }
}

/* 主页面 */
.home{
    .content{
        .search{
            width: 100%;
            height: 50px;
            display: flex;
            padding: 5px 20px;
            background: rgb(94, 180, 255);
            input{
                flex: 1;
                border-radius: 25px;
                outline: none;
                border: none;
                padding-left: 35%;
            }
        }
        .banner{
            width: 100%;
            height: 70px;
            .v-item{
                width: 100%;height: 70px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
        }
        .cnxh{
           width: 100%;
            height: 30px; 
            padding:5px 20px; 
        }
        .nav{
           width: 100%;
            height: 40px;
            display: flex;
            text-align: center;
            line-height: 40px;
            span{
                flex: 1;
            }
            span.ac{
                border-bottom: 2px solid red;
            }
        }
        .bqnav{
            width: 100%;
            display: flex;
            text-align: center;
            span{
                margin:13px 5px 0px;
                background: #eee;
                flex: 1;
                padding: 5px;
                border-radius: 5px;
            }
        }
        .list{
           width: 100%;
            height: 337px;
            overflow: auto;  
            .item{
                display: flex; 
                height: 100px;
                padding: 10px 20px;
                .img{
                    width: 80px;
                   height: 100%;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .text{
                    flex: 1;
                    padding: 10px;
                    line-height: 20px;
                    .yxl{
                        display: flex;
                        justify-content: space-between;
                    }
                    .mj{
                        span{
                            display: inline-block;
                            border: 1px solid orangered;
                            padding: 0 5px;
                            margin:5px 2px;
                            color: orangered;
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }
}
/* 搜索页面 */
.search{
    .content{
        height: 617px;
        .search{
            width: 100%;
            height: 60px;
            display: flex;
            padding: 10px;
            input{
                background: #eee;
                flex: 1;
                border-radius: 25px;
                outline: none;
                border: none;
                padding-left: 35%;
            }
            span{
                width: 15%;
                height: 100%;
                text-align: center;
                line-height: 40px;
            }
        }
        
        .lsjl{
            width: 100%;
            padding: 10px 20px;
            max-height: 100px;
            overflow: auto;
            span{
                display: inline-block;
                border-radius: 4px;
                background: #ccc;
                color:#fff;
                padding: 2px 5px;
                margin:5px 10px;
            }
        }
        h3{
            width: 100%;
            padding:10px 20px;
        }
        .list{
            max-height: 500px;
            overflow: auto;
           .item{
                display: flex; height: 100px;
                padding: 10px;
                border-bottom: 1px solid #ccc;
                .img{
                    width: 80px;
                   
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .text{
                    flex: 1;
                    padding: 10px;
                    line-height: 20px;
                    .yxl{
                        display: flex;
                        justify-content: space-between;
                    }
                    .mj{
                        span{
                            display: inline-block;
                            border: 1px solid orangered;
                            padding: 0 5px;
                            margin:5px 2px;
                            color: orangered;
                            font-size: 12px;
                        }
                    }
                }
            } 
        }
    }
}
/* 我的收藏页面 */
.mysc{
    .content{
        height: 617px;
        .list{
            width: 100%;
            height: 100%;
            overflow: auto;  
            .item{
                position: relative;
                display: flex; height: 100px;
                padding: 10px;
                .img{
                    width: 80px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .text{
                    flex: 1;
                    padding: 10px;
                    line-height: 20px;
                    .yxl{
                        display: flex;
                        justify-content: space-between;
                    }
                    .mj{
                        span{
                            display: inline-block;
                            border: 1px solid orangered;
                            padding: 0 5px;
                            margin:5px 2px;
                            color: orangered;
                            font-size: 12px;
                        }
                    }
                }
                .btn{
                    position: absolute;
                    right: 20px;
                    top: 20px;
                    background: skyblue;
                    color: #fff;
                    border-radius: 5px;
                    padding: 5px 10px;
                }
            } 
        }
    }
    .klist{
        margin-top: 50%;
        width: 100%;
        text-align: center;
        line-height: 40px;
        .gg{
            width: 100%;
             justify-content: center;
            span{
                border-radius: 5px;
                display: inline-block;
              width: 80px;
            height: 40px;
            background: skyblue;
            color: #fff;  
            }
            
        }
    }
}
/* 单个店铺页 */
.shop{
    .imgs{
                width: 100%;
                height: 100px;
                line-height: 100px;
                padding-left: 20px;
                background: url('/102.jpg') no-repeat;
                background-size: 100% 100%;
            }
    .content{
         height: 517px;
         display: flex;
        .nav{
            width: 20%;
            height: 100%;
            text-align: center;
            background: #eee;
            .item{
                width: 100%;
                height: 50px;
                line-height: 50px;
                border-bottom: 1px solid #ccc;
            }
            .item.active{
                border-left: 2px solid red;
            }
        }
        .list{
            flex: 1;
            overflow: auto;
            .item{
                width: 100%;
                display: flex;
               border-bottom: 1px solid #ccc;
               position: relative;
                .img{
                     padding: 10px;
                    width: 80px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .text{
                    flex: 1;
                    padding: 10px;
                    line-height: 22px;
                }
                .btn{
                    width: 30px;
                    height: 30px;
                    background: skyblue;
                    color: snow;
                    text-align: center;
                    line-height: 26px;
                    border-radius: 50px;
                    position: absolute;
                    bottom: 0;
                    right: 20px;
                }
            } 
        
        }
    }
    .foot{
        width: 100%;
        height: 50px;
        background: #666;
        position: absolute;
        left: 0;bottom: 0;
        display: flex;
        line-height: 50px;
        text-align: center;
        color: #fff;
        div{
            flex: 1;
        }
    }
}

/* 菜品购物车 */
.gwc{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%; background: rgba(0,0,0,.4);
   flex-direction: column;
    display: flex;
    .top{
        width: 100%;
        flex: 1;
       
    }
    .list{
        max-height: 367px;
        background: #fff;
        padding-bottom: 50px;
        overflow: auto;
        .header{
            position: fixed;
            left: 0;
            background: #fff;
            z-index: 22;
        }
        .yxsj{
            margin-top: 50px;
        }
        .item{
                width: 100%;
                display: flex;
               border-bottom: 1px solid #ccc;
               position: relative;
                .img{
                     padding: 10px;
                    width: 80px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .text{
                    flex: 1;
                    padding: 10px;
                    line-height: 20px;
                }
                .btn{
                    text-align: center;
                    line-height: 26px;
                    position: absolute;
                    bottom: 10px;
                    right: 0;
                    span{
                        border-radius: 50px;
                        display: inline-block;
                        width: 30px;
                        height: 30px;
                        background: skyblue;
                        color: snow;
                        margin: 0 5px;
                    }
                }
            } 
            .foot{
        width: 100%;
        height: 50px;
        background: #666;
        display: flex;
        line-height: 50px;
        text-align: center;
        color: #fff;
        div{
            flex: 1;
        }
    }
    }
}
/* 收货地址列表页 */
.shdz{
    .content{
        height: 617px;
        overflow: auto;
        position: relative;
        .list{
            
            .item{
                position: relative;
                padding: 10px;
                margin: 20px;
                height: 60px;
                background: #fff;
                display: flex;
                justify-content: space-between;
                color: #666;
                .left{
                    line-height: 20px;
                }
            }  
        }
        .adddz{
            width: 100%;
            height: 50px;
            background: skyblue;
            color: #fff;
            position: absolute;
            left: 0;bottom: 0;
            text-align: center;
            line-height: 50px;
        }
        .mydz{
            text-align: center;
            padding-top: 30%;
        }
        
    }
}
        .aacc {
               border: 2px solid red;
               
            }
            .mrdz{
                position: absolute;
                right: 10px;
                bottom: 10px;
                display: none;
                color: red;
            }
             .aacc .mrdz{
                 display: block;
             }
        
/* 新增收货地址页 */
.xzdz{
    .content{
        height: 617px;
        padding: 20px;
        div{
            width: 100%;
            height: 50px;
            line-height: 50px;
            input{
                outline: none;
                border: none;
                padding-left: 20px;
                height: 40px;
                border-bottom: 1px solid #ccc;
                width: 80%;
            }
        }
        .bcbsy{
            text-align: center;
            background: skyblue;
            color: #fff;
        }
    }
}
/* 修改收货地址页 */
.xgdz{
    .content{
        height: 617px;
        padding: 20px;
        div{
            width: 100%;
            height: 50px;
            line-height: 50px;
            input{
                outline: none;
                border: none;
                padding-left: 20px;
                height: 40px;
                border-bottom: 1px solid #ccc;
                width: 80%;
            }
        }
        .bcbsy{
            display: flex;
            span{
                margin: 2px 10px;
                flex: 1;
                text-align: center;
               border: 1px solid #ccc;
                  
            }
           .acc{
                 background: skyblue;
                 color: #fff;
            }
        }
    }
}
.gmsp{
    .content{
        width: 100%;
        height: 617px;
        overflow: auto;
        .item{
            background: #ccc;
            width: 100%;
           .name{
            width: 100%;  
            justify-content:space-between; 
           }
           .title{
            width: 100%;  
            justify-content:space-between; 
           }
           
        }
    }
}